#include <iostream>
#include <cstdio>
using namespace std;
typedef long long LL;
int main() {
	LL x=3;
	cout<<x*x*x*x*x*x*x*x<<endl;
	return 0;
}
